<%
	var Nextlink=Class.create()
		Nextlink.prototype=
		{
			initialize:function($options)
			{
				this.path=($options.path||'');
				this.object=Server.CreateObject('MSWC.NextLink');
			},
			getListCount:function($path)
			{
				return this.object.getListCount($path||this.path);
			},		
			getListIndex:function($path)
			{
				return this.object.getListIndex($path||this.path);
			},
			getNextDescription:function($path)
			{
				return this.object.GetNextDescription($path||this.path);
			},
			getNextUrl:function($path)
			{
				return this.object.GetNextUrl($path||this.path);
			},
			getPreviousDescription:function($path)
			{
				return this.object.GetPreviousDescription($path||this.path);
			},
			getPreviousUrl:function($path)
			{
				return this.object.GetPreviousUrl($path||this.path);
			},
			getNthDescription:function($index,$path)
			{
				return this.object.GetNthDescription($path||this.path,$index);
			},
			getNthUrl:function($index,$path)
			{
				return this.object.GetNthUrl($path||this.path,$index);
			},			
			close:function()
			{
				try
				{
					for(var iProperty in this)
						delete this[iProperty];
				}catch(e)
				{}
			}
		};
%>